<div class="form">
<?php
$form = $this->beginWidget ( 'CActiveForm', array (
		'id' => 'comment-form', 
		'enableAjaxValidation' => true, 
		'clientOptions' => array (
				'validateOnSubmit' => true, 
				'validationUrl' => Yii::app ()->createAbsoluteUrl ( 'comment/ajaxNewCheck' ) 
		) 
) );
?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
	
		<?php echo $form->labelEx($model,'content'); ?>
		<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'content'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton(Yii::t('lng_comment', $model->isNewRecord ? 'CommentSubmit' : 'CommentSave')); ?>
	</div>

<?php $this->endWidget(); ?>
</div>
<!-- form -->